package com.nowcoder.community.entity;

import lombok.Data;

import java.util.Date;

@Data
public class User {

    private int id; // 用户id
    private String username; // 用户名
    private String password; // 密码
    private String salt; // 盐值
    private String email; // 邮箱
    private int type; // 用户类型
    private int status; // 状态
    private String activationCode; // 激活码
    private String headerUrl; // 用户头像
    private Date createTime; // 创建时间


    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", email='" + email + '\'' +
                ", type=" + type +
                ", status=" + status +
                ", activationCode='" + activationCode + '\'' +
                ", headerUrl='" + headerUrl + '\'' +
                ", createTime=" + createTime +
                '}';
    }

}
